﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using intelliPaper.DB;
using intelliPaper.Model;
using intelliPaper.DB.AccessUtil;

namespace intelliPaper.DB
{
    class Program
    {
        static void Main(string[] args)
        {

            List<Question> qs = Dao.GetAllQuestions();

            List<KnowledgePoint> ks = Dao.GetAllKnowledgePoints();


            Helper.InitialKnowledgePointInQuestions(ks, qs);

            Dictionary <string ,int> request=new Dictionary<string,int> ();
            request.Add ("选择题",30);
            request.Add ("填空题",10);
            request .Add ("简答题",9);

           List<Question > re= Helper.AutoMakePaper(qs, ks.Take(15).ToList (), request);
        
            
        }

       
    }

}
